quartz menu: change sensitivity approach
authorRyan Lortie <desrt@desrt.ca>
Wed, 15 Jan 2014 05:26:58 +0000 (00:26 -0500)
committerRyan Lortie <desrt@desrt.ca>
Sat, 18 Jan 2014 01:29:31 +0000 (20:29 -0500)
commite70f506e831bddfb81b6f76e57f78f8b380d6b1d
treeba2cd038e99a2e07f87ecfc22b2e048d7bada28e
parentb73d291086aea251c48d21192e1818488a1b58f4
quartz menu: change sensitivity approach

By default, Mac OS scans menus as they are opened, updating the
sensitivity of each item in the menu.

The current code in gtkapplication-menu-quartz disables this behaviour,
preferring to manually control the sensitivity of each item in the menu
(when told by the tracker that it has changed internally).

Change the way that this works to more closely follow the usual Mac OS
regime.

This will allow us to construct a typical "application menu" on Mac OS
containing the items that are typically found there ("Hide", "Hide
Others", "Show All", "Services") and have the OS automatically update
their sensitivity.

https://bugzilla.gnome.org/show_bug.cgi?id=720552
gtk/gtkapplication-quartz-menu.c